import React from "react";
import {Route} from "react-router";
import AsyncComponent from "../../utils/AsyncComponent";

const Card = AsyncComponent(()=>import(/*webpackChunkName: "PageCard"*/"./Card.js"));
const Love = AsyncComponent(()=>import(/*webpackChunkName: "Love"*/"./Love"));
const Skill = AsyncComponent(()=>import(/*webpackChunkName: "Skill"*/"./Skill"));

export default (
    <>
        <Route path="/home/card" component={Card} />
        <Route path="/home/love" component={Love} />
        <Route path="/home/skill" component={Skill} />
        <Route exact path="/home" component={Card} />
    </>
);
